//
//  AddressSelector.h
//  111
//
//  Created by WuXushun on 16/2/22.
//  Copyright © 2016年 wuxushun. All rights reserved.
//

//默认大小
#define defaultRect CGRectMake(0, [[UIScreen mainScreen] bounds].size.height - 235, [[UIScreen mainScreen] bounds].size.width, 250)

#import <UIKit/UIKit.h>

@protocol AddressSelectorDelegate <NSObject>

//回调方法  点击确定后返回省市区名
-(void)addressSelectorDidSelected:(UIView *)addressSelector withSelectedData:(NSArray *)data;

@end

@interface AddressSelector : UIView
@property (weak,nonatomic) id<AddressSelectorDelegate>delegate;

//初始化一个选择器
- (id)initWithFrame:(CGRect)frame withData:(NSArray *)data;

//显示
-(void)show;


//隐藏
-(void)hide;

@end
